#include <iostream>
#include <unistd.h>
#include <signal.h>
using namespace std;
typedef void(*func_t)(int);


void handler(int sign)
{
    cout<<"The signal is "<<sign<<endl;
}

int main()
{

for(int i=0;i<32;i++)
{
signal(i,&handler);
}

signal(2,&handler);
while(1){
cout<<"I am a process,I am working..."<<endl;
sleep(1);
}
return 0;
}